﻿﻿<%@page import="java.util.*" %>
<%
	if(session.getAttribute("hotelId") == null || 
		session.getAttribute("userid") == null){
		response.sendRedirect("/index.jsp");
		return;
	}else if(session.getAttribute("workArea") == null ||
		session.getAttribute("counter") == null){
		response.sendRedirect("/choseworkarea.jsp");
		return;	
	}
	
	String Code = (String)session.getAttribute("LanguageCode");
	String SubCode = (String)session.getAttribute("LanguageSubcode");
   	Locale locale = new Locale(Code, SubCode);
	ResourceBundle resource = ResourceBundle.getBundle("resource", locale);
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>House Keeping | Eem tech soft</title>
<link href="/css/custom/jquery-ui-1.9.1.custom.min.css" rel="stylesheet" />
<link href="/css/custom/loading.css" rel="stylesheet" />
<link href="/css/components/front.css" rel="stylesheet" />
<link href="/css/housekeeping/mainhousekeeping.css" rel="stylesheet" />
<link href="/css/housekeeping/popup.css" rel="stylesheet" />
<link href="/css/popup.css" rel="stylesheet" />
<link href="/css/main.css" rel="stylesheet" />
<link href="/css/easydropdown.css" rel="stylesheet" />

<script src="/js/jquery-1.8.3.min.js"></script>
<script src="/js/jquery-ui-1.9.1.custom.min.js"></script>
<script src="/js/sharedData.js"></script>
<script src="/js/simpleservice.js"></script>
<script src="/js/loading.js"></script>
<script src="/js/components/selectDropDown.js"></script>
<script src="/js/jquery.easydropdown.min.js"></script>
<script src="/js/housekeeping/serviceData.js"></script>
<script src="/js/housekeeping/SharedData.js"></script>
<script src="/js/housekeeping/filter.js"></script>
<script src="/js/FrontFunction.js"></script>

<script>
$(function(){
	loadSharedData();
});
</script>
</head>

<body>
<jsp:include page="./language.jsp" flush="true"/>
	<div id="left" style="width:180px;">
		<img src="../images/logo.png" style="margin-bottom:10px; margin-left:60px;"/>
		<jsp:include page="./components/todayRoomStatus/todayRoomStatus.jsp" flush="true"/>
		<div class="hr_sep"><hr/></div>
		<jsp:include page="./components/housekeepingsummary/summary.jsp" flush="true"/>
		<div class="hr_sep"><hr/></div>
		<div class="link" style="padding-left:10px;" onClick="toggle(this,$('[name=show_dnr]'));" name="toggle_dnr" title="<%out.print(resource.getString("housekeeping.ShowDNR")); %>"><%out.print("+ "+resource.getString("housekeeping.ShowDNR")); %></div>
        <div style="display:none" name="show_dnr"></div>
		<div class="hr_sep"><hr/></div>
        <div class="link" style="padding-left:10px;" onClick="toggle(this,$('[name=show_data_toggleroom]'));" name="toggle_item_room" title="<%out.print(resource.getString("detailInformation.roomColorStatus")); %>"><%out.print("+ "+resource.getString("detailInformation.roomColorStatus")); %></div>
        <div style="display:none" name="show_data_toggleroom"></div>
        <div class="hr_sep"><hr/></div>
        <div class="link" style="padding-left:10px;" onClick="toggle(this,$('[name=show_data_toggleclean]'));" name="toggle_item_cleaning" title="<%out.print(resource.getString("detailInformation.cleanColorStatus")); %>"><%out.print("+ "+resource.getString("detailInformation.cleanColorStatus")); %></div>
        <div style="display:none" name="show_data_toggleclean"></div>
        <div class="hr_sep"><hr/></div>
		<span class="link" style="padding-left:10px;" onClick="LoadHouseKeepingScreen();"><% out.print(resource.getString("housekeeping.refresh"));%></span>
		<div class="hr_sep"><hr/></div>
	</div>
	<div id="top" style="margin-left:180px;">
		<jsp:include page="../components/mainmenu/mainmanu.jsp" flush="true"/>
	</div>
	<div id="context" style="margin-left:180px;">
		<jsp:include page="/HouseKeeping/components/filter/filter.jsp" flush="true"/>
		<div class="hr_sep"><hr/></div>
		<div class="tableBorder">
			<div style="padding: 7px 7px 25px 7px;">
				<jsp:include page="/HouseKeeping/components/roomdata/roomdata.jsp" flush="true"/>
			</div>
			<div class="ui-newdialog-button"><div style="text-align:center;"><button class="btn" onclick="printHouse()" />Print</div></div>
		</div>
	</div>
	
	<div name="dynamic"></div>
	<div id="BlankDialog" style="display:none; padding:5px 0 0 10px;"></div>
	<div id="loadingScreen"></div>
</body>
</html>